Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-viewport: Fix Galaxy S9's viewport size #9797

Merged
merged 1 commit into from
Feb 15, 2020
Merged

Addon-viewport: Fix Galaxy S9's viewport size #9797

merged 1 commit into from
Feb 15, 2020

Conversation

behrangsa
Copy link
Contributor

Galaxy S9's viewport size is 740x360. See https://yesviz.com/devices/s9/.

Issue:

What I did

Fixed Galaxy S9 viewport size in the viewport addon's defaults.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

Galaxy S9's viewport size is 740x360. See https://yesviz.com/devices/s9/.
@behrangsa
Copy link
Contributor Author

I think Pixel and Pixel XL sizes are also incorrect. See https://material.io/resources/devices/.

We should also add Galaxy Note 9 or 10 to the list too.

@ndelangen
Copy link
Member

Is it useful to have so many devices in the default list?

@shilman shilman changed the title Fixed Galaxy S9's viewport size Addon-viewports: Fix Galaxy S9's viewport size Feb 15, 2020
@shilman shilman changed the title Addon-viewports: Fix Galaxy S9's viewport size Addon-viewport: Fix Galaxy S9's viewport size Feb 15, 2020
@shilman shilman merged commit c628a67 into storybookjs:next Feb 15, 2020
@behrangsa
Copy link
Contributor Author

Not if it remains flat. If we group by manufacturer, then we can expand the defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants